home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / pdox693.zip / TI530.ASC < prev    next >
Text File  |  1992-08-12  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  PARADOX                                NUMBER  :  530
  9.   VERSION  :  ALL
  10.        OS  :  DOS
  11.      DATE  :  August 12, 1992                          PAGE  :  1/1
  12.  
  13.     TITLE  :  USING SETKEY TO CALCULATE TOTALS WHILE EDITING
  14.  
  15.  
  16.  
  17.  
  18.   The following script demonstrates how to use the PAL SETKEY
  19.   command to perform a calculation while in a form.  Calculated
  20.   fields in forms are display only fields.  If you wish to perform
  21.   a calculation while in a form and have the resulting answer
  22.   appear in the table, then you can use the SETKEY command to
  23.   perform the calculations.
  24.  
  25.   If your table currently does not contain a field for the result
  26.   of the calculation, then you must first perform a
  27.   MODIFY/RESTRUCTURE on the table to add a new field.
  28.  
  29.   SETKEY commands may be defined in a script called init (located
  30.   in the same directory as your Paradox program files).  The
  31.   example below uses the SETKEY command to calculate the value of
  32.   Extended Price.
  33.  
  34.           SETKEY 3 [Extended Price]=[Quantity]*[Price]
  35.  
  36.   When the user presses [Ctrl-C] (ASCII value 3), Paradox will
  37.   calculate the Extended Price, and place the calculated value in
  38.   the extended price field.
  39.  
  40.   DISCLAIMER: You have the right to use this technical information
  41.   subject to the terms of the No-Nonsense License Statement that
  42.   you received with the Borland product to which this information
  43.   pertains.
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.